const componentsFile = require.context("./",true,/\.vue$/)
const install = (vue) => {
    if(install.installed) return;
    componentsFile.keys().forEach(fileKey => {
        let file = componentsFile(fileKey).default
        vue.component(file.name,file)
    });
}
if(typeof window !== undefined && window.Vue) {
    install(window.Vue)
}

export default {install}


